public abstract class b2AllocationGuard {

	/** The address of the underlying instance of b2Mat22. */
	public int address;

	b2AllocationGuard() {
	}

	/** Use this value as the underlying object's address. */
	b2AllocationGuard(int addr) {
		address = addr;
	}

	public void release() {
		if ( address != 0 ) {
			address = 0;
		}
	}

	@Override
	public void finalize() {
		if ( address == 0 ) {
			return;
		}
		else {
			release();
		}
	}
}
